﻿<Window x:Class="UploadClient.ExceptionWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:UploadClient"
        Title="ExceptionWindow" 
        ResizeMode="NoResize" 
        ShowInTaskbar="False" 
        SizeToContent="WidthAndHeight" 
        Topmost="True" 
        WindowStartupLocation="CenterOwner" 
        WindowStyle="ToolWindow"
        MinWidth="450"
        Background="#FFEAEAEA">
    <Grid >
        <DockPanel LastChildFill="True"  Margin="10,10,10,10">

            <DockPanel DockPanel.Dock="Top" LastChildFill="True">
                <Image DockPanel.Dock="Right" Name="error_Image"  Height="48" Width="48"/>
                <Label Name="error_Titel" FontSize="24" />
            </DockPanel>

            <DockPanel DockPanel.Dock="Top" Margin="0,0,0,15">
                <TextBlock Name="error_Text" Padding="15,0,0,0"/>
            </DockPanel>

            <DockPanel DockPanel.Dock="Top" LastChildFill="True">
                <TreeView DockPanel.Dock="Left" Name="error_TreeView" Visibility="Hidden" SelectedItemChanged="Error_TreeView_SelectedItemChanged" Background="{x:Null}" Padding="5,5,15,5" BorderBrush="White" />
                <TextBlock DockPanel.Dock="Right" Name="error_TreeViewText" Visibility="Hidden" Margin="10,10,10,10"/>
            </DockPanel>

            <Grid HorizontalAlignment="Right" Margin="5,10,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="10" />
                    <ColumnDefinition Width="Auto" />
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="25"/>
                </Grid.RowDefinitions>
                <Button Background="#FFFFFF" Grid.Column="1" Name="error_ClipboardButton" Content="{local:Localization Key=UPL_0034}" Click="Error_ClipboardButton_Click" Visibility="Hidden" Padding="10,0,10,0"/>
                <Button Background="#FFFFFF" Grid.Column="3" Name="error_CloseButton" Content="{local:Localization Key=UPL_0033}" Click="Error_CloseButton_Click" Padding="10,0,10,0"/>
            </Grid>
            </DockPanel>
            
    </Grid>
</Window>
